hcf of two numbers in java